package cn.zhentao.charge.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 支付单对象 charge_pay_order
 * 
 * @author ruoyi
 * @date 2025-05-15
 */
public class ChargePayOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 表主键id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 订单编号 雪花算法 */
    @Excel(name = "订单编号 雪花算法")
    private String orderNo;

    /** 订单类型  0普通充值 1支付充电 */
    @Excel(name = "订单类型  0普通充值 1支付充电")
    private Integer orderType;

    /** 充电记录id */
    @Excel(name = "充电记录id")
    private Long chargeRecordId;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal amount;

    /** 支付平台返回的订单号 */
    @Excel(name = "支付平台返回的订单号")
    private String payOrderNo;

    /** 支付状态 0支付中 1支付成功 2支付失败 */
    @Excel(name = "支付状态 0支付中 1支付成功 2支付失败")
    private Integer payStatus;

    /** 用户优惠券id */
    @Excel(name = "用户优惠券id")
    private Integer userCouponId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setOrderType(Integer orderType) 
    {
        this.orderType = orderType;
    }

    public Integer getOrderType() 
    {
        return orderType;
    }

    public void setChargeRecordId(Long chargeRecordId) 
    {
        this.chargeRecordId = chargeRecordId;
    }

    public Long getChargeRecordId() 
    {
        return chargeRecordId;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setPayOrderNo(String payOrderNo) 
    {
        this.payOrderNo = payOrderNo;
    }

    public String getPayOrderNo() 
    {
        return payOrderNo;
    }

    public void setPayStatus(Integer payStatus) 
    {
        this.payStatus = payStatus;
    }

    public Integer getPayStatus() 
    {
        return payStatus;
    }

    public void setUserCouponId(Integer userCouponId) 
    {
        this.userCouponId = userCouponId;
    }

    public Integer getUserCouponId() 
    {
        return userCouponId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("orderNo", getOrderNo())
            .append("orderType", getOrderType())
            .append("chargeRecordId", getChargeRecordId())
            .append("amount", getAmount())
            .append("payOrderNo", getPayOrderNo())
            .append("payStatus", getPayStatus())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("userCouponId", getUserCouponId())
            .toString();
    }
}
